home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
gnu
/
gawk
/
gawk213b.zoo
/
test
/
awf
/
awf.g
< prev
next >
Wrap
Text File
|
1991-04-27
|
850b
|
35 lines
#
# this is a gulam shell script which performs basically the
# same operations as Bourne shell script awf for a particular
# task of formatting awf.1 file.
#
echo "creating program for pass 2"
sed -n '1,/^#include/p' pass2.bas > awkp.tmp
cat pass2.man >>awkp.tmp
sed -n '/^#include/,$p' pass2.bas >> awkp.tmp
#
echo "building work file"
echo ".^x awe.tmp" >wrk.tmp
echo ".^b" >> wrk.tmp
echo ".^# 1 <prolog>" >> wrk.tmp
cat dev.dum >> wrk.tmp
cat common >> wrk.tmp
cat mac.man >> wrk.tmp
echo ".^# 1 awf.1" >> wrk.tmp
cat awf.1 >> wrk.tmp
echo ".^e" >> wrk.tmp
#
echo "pass 1"
gawk -f pass1 wrk.tmp >pass1.tmp
echo "pass 2"
gawk -f awkp.tmp pass1.tmp >pass2.tmp
echo "pass 3"
gawk -f pass3 pass2.tmp > awf.man
#
if { -e awe.tmp }
cat awe.tmp
endif
echo "checking results"
diff awf_1.out awf.man
Rm *.tmp awf.man